/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

@import '~antd/es/style/themes/default.less';

html,
body,
#root {
  height: 100%;
}

.ant-pro-top-nav-header-logo img {
  height: 20px;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout {
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 表格
// 状态点
.ant-badge-status {
  .ant-badge-status-processing {
    background-color: @success-color;
    &::after {
      border-color: @success-color;
    }
  }
}
// 空数据
.ant-table-blank {
  &::before {
    color: #ccc;
    content: '--';
  }
}

// 颜色
.color-grey {
  color: @text-color-secondary;
}

// 表格搜索表单
.kb-pro-table {
  .ant-pro-table-search {
    .ant-row-start {
      justify-content: flex-start;
    }
    .ant-col-offset-12 {
      flex: 0 1 auto;
      margin-left: 0;
    }
  }
  .ant-card-body {
    padding: 0 !important;
  }
}
.kb-pro-table-form {
  .pro-form-query-filter-actions {
    margin-bottom: 0;
    .ant-form-item-label {
      display: none;
    }
    .ant-form-item-control-input-content > .ant-space {
      gap: 0 !important;
    }
  }
}

.ant-pro-table {
  .ant-card-body,
  .ant-pro-card-body {
    padding: 0;
  }
  .ant-col-offset-12,
  .ant-col-offset-16,
  .ant-col-offset-18 {
    margin: 0;
  }
  .ant-form-item-control {
    max-width: 100% !important;
  }
  .ant-form-item-control-input-content {
    display: flex;
  }
  .pro-zform-query-filter-actions {
    .ant-form-item-label {
      width: 0;
    }
    .ant-form-item-control-input-content {
      display: flex;
    }
  }
}

//

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

@media screen and(max-width: @screen-xs) {
  .ant-pro-table .ant-table-tbody > tr > td {
    white-space: pre-wrap !important;
  }
}
.ant-page-header {
  display: none;
}
.ant-page-header-footer .ant-tabs > .ant-tabs-nav::before {
  border-bottom: 1px solid #f0f0f0;
}

.ant-pro-global-footer {
  margin: 0 !important;
  padding: @padding-md !important;
  &-links {
    margin-bottom: 0 !important;
  }
}

.cascaderStorey {
  &__1 {
    .ant-cascader-menus {
      > :nth-child(1) {
        .ant-cascader-checkbox {
          display: none;
        }
      }
    }
  }
  &__2 {
    .ant-cascader-menus {
      > :nth-child(1),
      > :nth-child(2) {
        .ant-cascader-checkbox {
          display: none;
        }
      }
    }
  }
  &__3 {
    .ant-cascader-menus {
      > :nth-child(1),
      > :nth-child(2),
      > :nth-child(3) {
        .ant-cascader-checkbox {
          display: none;
        }
      }
    }
  }
}
